﻿using ParkSaleForAdmin.Data;
using ParkSaleForAdmin.Foundation;
namespace ParkSaleForAdmin.FunctionWindow
{
    class ParkRightsInfo
    {
        [DataToUI("车位产权编号", false)]
        public string id
        {
            get;
            set;
        }
        [DataToUI("所有人")]
        public string belong
        {
            get;
            set;
        }
        [DataToUI("车位编号")]
        public string item
        {
            get;
            set;
        }
    }
    class ParkRights : BasicManagerWindow<ParkRightsInfo>
    {
        public override string TableName => "propertyRight";

        public override string DeleteStr(ParkRightsInfo obj)
        {
            return SQLHelpler.MakeSelectStr(TableName, "id", obj.id);
        }

        public override string AppendStr(ParkRightsInfo obj)
        {
            return SQLHelpler.MakeSelectStr(TableName, "id", 9999999.ToString());
        }

        public override string ChangeStr(ParkRightsInfo obj)
        {
            return SQLHelpler.MakeSelectStr(TableName, "id", obj.id);
        }
    }
}
